Alexander Larsson [Wed, 27 Mar 2013 08:45:08 +0000 (09:45 +0100)]
Add baseline alignment functions to gtk.symbols
Alexander Larsson [Wed, 27 Mar 2013 08:44:02 +0000 (09:44 +0100)]
GtkLabel: Minor cleanup
Make sure we always compare for a set baseline in the same way.
I.e. baseline != -1, never baseline >= 0.
Alexander Larsson [Wed, 27 Mar 2013 08:43:40 +0000 (09:43 +0100)]
GtkWidget: Add missing Since docs
Alexander Larsson [Wed, 27 Mar 2013 08:42:43 +0000 (09:42 +0100)]
GtkImage: Reuse previously calculated baseline_align in draw()
No need to recalculate this every time we draw.
Alexander Larsson [Wed, 27 Mar 2013 08:40:09 +0000 (09:40 +0100)]
GtkBox: Add missing Since in docs
Alexander Larsson [Wed, 27 Mar 2013 08:39:44 +0000 (09:39 +0100)]
GtkGrid: Add missing Since docs
Alexander Larsson [Tue, 5 Mar 2013 14:23:31 +0000 (15:23 +0100)]
Add tests/testbaseline
Alexander Larsson [Tue, 26 Mar 2013 10:46:55 +0000 (11:46 +0100)]
GtkDialog: Baseline align buttons in action area
Alexander Larsson [Tue, 26 Mar 2013 10:08:33 +0000 (11:08 +0100)]
GtkEventBox: Support baseline alignment
This allows baselines to propagate from the child of the eventbox.
Alexander Larsson [Mon, 25 Mar 2013 16:59:55 +0000 (17:59 +0100)]
GtkButtonBox: Support baseline alignment
Alexander Larsson [Fri, 22 Mar 2013 11:01:26 +0000 (12:01 +0100)]
GtkCheckButton and GtkRadioButton: Implement baseline alignment
Alexander Larsson [Fri, 22 Mar 2013 10:32:07 +0000 (11:32 +0100)]
GtkSpinButton: Support baseline alignment
Alexander Larsson [Thu, 21 Mar 2013 10:09:43 +0000 (11:09 +0100)]
GtkGrid: Support baseline alignment in GtkGrid
We support a local baseline in each row, as well as selecting
a specific row for the global baseline of the entire GtkGrid.
Alexander Larsson [Wed, 20 Mar 2013 13:30:41 +0000 (14:30 +0100)]
GtkEntry: Support baselines
Alexander Larsson [Thu, 7 Mar 2013 12:53:16 +0000 (13:53 +0100)]
GtkButton: Add baseline align support
Alexander Larsson [Tue, 26 Mar 2013 09:56:53 +0000 (10:56 +0100)]
GtkImage: Support baselines
This uses the current font metrics to guess the baseline of the image.
Without this any non-centered baseline in buttons with images look weird.
Alexander Larsson [Thu, 7 Mar 2013 12:45:01 +0000 (13:45 +0100)]
GtkAlignment: Support baselines
We now report any baselines from the child, and allocate it.
Also, in the case of a baselign aligned child we ignore yscale/yalign
as that is not supportable.
Alexander Larsson [Tue, 5 Mar 2013 14:20:20 +0000 (15:20 +0100)]
GtkBox: Add baseline alignment for horizontal boxes
Report a baseline based height and baseline whenever there
are children with ALIGN_BASELINE.
Assign baseline to childen in size_allocate. Either the one inherited
from the parent if set, or otherwise calculate one based on any
ALIGN_BASELINE children.
Alexander Larsson [Tue, 5 Mar 2013 14:14:17 +0000 (15:14 +0100)]
GtkLabel: Support baseline
Report the baseline in get_preferred_height_and_baseline_for_width().
Alexander Larsson [Fri, 22 Mar 2013 11:27:17 +0000 (12:27 +0100)]
GtkSizeRequestCache: Don't store baselines in horizontal case
This saves memory for every widget (maximum 48 bytes per widget) at
a cost of a few duplicated codepaths in the size request cache.
Alexander Larsson [Thu, 21 Mar 2013 17:25:29 +0000 (18:25 +0100)]
Add GTK_DEBUG=baselines support
This draws red lines to show where the baselines are
Alexander Larsson [Tue, 5 Mar 2013 13:54:03 +0000 (14:54 +0100)]
Initial support for baselines
This modifies the size machinery in order to allow baseline support.
We add a new widget vfunc get_preferred_height_and_baseline_for_width
which queries the normal height_for_width (or non-for-width if width
is -1) and additionally returns optional (-1 means "no baseline")
baselines for the minimal and natural heights.
We also add a new gtk_widget_size_allocate_with_baseline() which
baseline-aware containers can use to allocate children with a specific
baseline, either one inherited from the parent, or one introduced due
to requested baseline alignment in the container
itself. size_allocate_with_baseline() works just like a normal size
allocation, except the baseline gets recorded so that the child can
access it via gtk_widget_get_allocated_baseline() when it aligns
itself.
There are also adjust_baseline_request/allocation similar to the
allocation adjustment, and we extend the size request cache to also
store the baselines.
Alexander Larsson [Tue, 5 Mar 2013 14:06:12 +0000 (15:06 +0100)]
Add GTK_ALIGN_BASELINE to GtkAlign
Setting this means baseline aware containers should align the widget
according to the baseline. For other containers this behaves like
FILL.
In order to not suprise old code with a new enum value we always
return _FILL for _BASELINE unless you specifically request it via
gtk_widget_get_valign_with_baseline().
John Ralls [Mon, 22 Apr 2013 22:48:03 +0000 (15:48 -0700)]
Fix automake warning about CFLAGS etc. being user variables
John Ralls [Mon, 22 Apr 2013 22:46:08 +0000 (15:46 -0700)]
Remove get_atom_name and atom_intern
Completes
aa9e974 for quartz
John Ralls [Mon, 22 Apr 2013 22:40:03 +0000 (15:40 -0700)]
Fix attempted inclusion of local headers with system brackets.
John Ralls [Mon, 22 Apr 2013 22:38:46 +0000 (15:38 -0700)]
gdk: Temporarily add -xobjective-c to CFLAGS
To enable compiling the quartz backend after
a6a4428
Benjamin Otte [Mon, 22 Apr 2013 21:37:18 +0000 (17:37 -0400)]
button: Implement height-for-width
https://bugzilla.gnome.org/show_bug.cgi?id=698433
Benjamin Otte [Mon, 22 Apr 2013 21:37:05 +0000 (17:37 -0400)]
sizerequest: Split out a common function
Cosimo Cecchi [Mon, 22 Apr 2013 21:33:20 +0000 (17:33 -0400)]
window: remove unused code
We don't need to add these style classes.
Cosimo Cecchi [Mon, 22 Apr 2013 21:28:23 +0000 (17:28 -0400)]
window: rework the CSD theming layer
Instead of having three different boxes and style classes, we can just
get away with the regular background box, plus a window-frame, which
contains the external frame, together with the window drop shadows.
GtkWindow now has special code to ensure the backing actual window is
allocated big enough to accomodate the shadows (using the shadow size
calculations introduced in the previous commit). We also use the margin
value to determine the size of the invisible borders (which can then be
different than the shadow).
Cosimo Cecchi [Mon, 22 Apr 2013 20:50:39 +0000 (16:50 -0400)]
cssshadow: add a method to get the size of a shadows value
The method returns the size of each side of a GtkCssShadowsValue.
Cosimo Cecchi [Mon, 22 Apr 2013 21:24:09 +0000 (17:24 -0400)]
window: factor out a gtk_window_get_maximized() function
Simplify code that does this same check over and over.
Cosimo Cecchi [Mon, 22 Apr 2013 15:22:37 +0000 (11:22 -0400)]
window: remove title_border
We don't actually need this additional title border.
Ryan Lortie [Mon, 22 Apr 2013 19:53:39 +0000 (15:53 -0400)]
GtkModelMenuItem: add support for 'icon' attribute
Add support for icons on a GMenuModel.
https://bugzilla.gnome.org/show_bug.cgi?id=688820
Piotr Drąg [Mon, 22 Apr 2013 18:51:32 +0000 (20:51 +0200)]
Updated POTFILES.in and POTFILES.skip
Matthias Clasen [Mon, 22 Apr 2013 16:36:10 +0000 (12:36 -0400)]
Add new symbols
Add the GtkRevealer functions to gtk.symbols
Matthias Clasen [Mon, 22 Apr 2013 16:34:14 +0000 (12:34 -0400)]
Do rtl flipping for GtkRevealer transitions
Matthias Clasen [Mon, 22 Apr 2013 16:03:07 +0000 (12:03 -0400)]
Add a revealer example to gtk-demo
I tried to make a 'revealer ballet'. Judge for yourself if
I succeeded.
Matthias Clasen [Mon, 22 Apr 2013 14:21:44 +0000 (10:21 -0400)]
Add docs for GtkRevealer
Matthias Clasen [Mon, 22 Apr 2013 13:42:48 +0000 (09:42 -0400)]
GtkRevealer: Add a fading animation
Using a container for this is not necessarily the most
elegant solution, but it lets us reuse the animation
machinery in GtkRevealer.
Matthias Clasen [Mon, 22 Apr 2013 14:22:02 +0000 (10:22 -0400)]
Forgotten file
Matthias Clasen [Mon, 22 Apr 2013 13:31:32 +0000 (09:31 -0400)]
Add GtkRevealer
This is a widget that can hide or show (ie reveal) its child
in an animated fashion.
This widget was initially developed in libgd.
Cosimo Cecchi [Mon, 22 Apr 2013 15:19:54 +0000 (11:19 -0400)]
stack: fix a typo in docs
Matthias Clasen [Mon, 22 Apr 2013 14:24:20 +0000 (10:24 -0400)]
Typo fix in GtkStack docs
Matthias Clasen [Mon, 22 Apr 2013 14:23:56 +0000 (10:23 -0400)]
Typo fix in GtkStackSwitcher docs
Benjamin Otte [Mon, 22 Apr 2013 12:23:08 +0000 (08:23 -0400)]
Revert "Revert "gtkbin: Remove the silliest code on earth""
This reverts commit
b164df74506505ac0f4559744ad9b59b5ea57ebf.
Victor Ibragimov [Mon, 22 Apr 2013 08:12:09 +0000 (13:12 +0500)]
Tajik translation updated
Rafael Ferreira [Mon, 22 Apr 2013 07:58:51 +0000 (04:58 -0300)]
Updated Brazilian translation for UI and PO-Prop.
Tristan Van Berkom [Mon, 22 Apr 2013 06:55:20 +0000 (15:55 +0900)]
Updated private widget catalog to remove the reference to the shortcuts model
This model seems to be removed since Federico's places-sidebar work.
Tristan Van Berkom [Sat, 20 Apr 2013 08:52:16 +0000 (17:52 +0900)]
Revert "gtkbin: Remove the silliest code on earth"
This reverts commit
f4438a1ffc6aaab92fb6b751cd16e95c2abaa0e3.
The calculation of the delta between parent and child widget
is required in order to automate height-for-width and width-for-height
requests for various GtkBin widgets.
GtkButton, GtkCheckButton, GtkRadioButton, etc, all have different
requests for space around the content which can not be satisfied
with a simple calculation of GtkContainer border-width.
Matthias Clasen [Mon, 22 Apr 2013 03:13:16 +0000 (23:13 -0400)]
GtkStack: shorten a few parameter names
Looks better in the docs.
Matthias Clasen [Mon, 22 Apr 2013 02:24:54 +0000 (22:24 -0400)]
Forgot one place
Also change the property definition for transition-duration
to be uint instead of int.
Matthias Clasen [Mon, 22 Apr 2013 02:00:06 +0000 (22:00 -0400)]
Add new places sidebar symbols
Matthias Clasen [Mon, 22 Apr 2013 01:31:29 +0000 (21:31 -0400)]
Make transition-duration unsigned
The code doesn't deal with negative durations, so better
don't allow them.
Matthias Clasen [Mon, 22 Apr 2013 01:16:46 +0000 (21:16 -0400)]
Change transition-type property type
This is an enum, so declare the property as such.
Matthias Clasen [Mon, 22 Apr 2013 01:16:24 +0000 (21:16 -0400)]
Add a GtkStack example to gtk-demo
Matthias Clasen [Mon, 22 Apr 2013 00:41:22 +0000 (20:41 -0400)]
GtkStack: warn if child names are not unique
Matthias Clasen [Mon, 22 Apr 2013 00:27:53 +0000 (20:27 -0400)]
Add new symbols
Matthias Clasen [Mon, 22 Apr 2013 00:19:51 +0000 (20:19 -0400)]
Add new api to the docs
Matthias Clasen [Mon, 22 Apr 2013 00:17:40 +0000 (20:17 -0400)]
GtkStack: add vertical slide transitions
We allow transitions that slide up or down.
Matthias Clasen [Sun, 21 Apr 2013 23:53:57 +0000 (19:53 -0400)]
GtkStack: rtl flipping for animation
We switch slide-right and slight-left when in rtl.
Matthias Clasen [Sun, 21 Apr 2013 18:22:35 +0000 (14:22 -0400)]
Add a way to specify transition types on the fly
Add a gtk_stack_set_visible_child_full that takes a
transition type.
Matthias Clasen [Sun, 21 Apr 2013 15:05:38 +0000 (11:05 -0400)]
Add docs for GtkStackSwitcher
Matthias Clasen [Sun, 21 Apr 2013 14:14:46 +0000 (10:14 -0400)]
Add docs for GtkStack
Matthias Clasen [Sun, 21 Apr 2013 11:51:14 +0000 (07:51 -0400)]
Add GtkStack
Add separate GtkStack and GtkStackSwitcher widgets that are an
alternative to GtkNotebook. Additionally, GtkStack supports
animated transitions when changing pages.
These widgets were initially developed in libgd.
Federico Mena Quintero [Sun, 21 Apr 2013 22:21:37 +0000 (18:21 -0400)]
Merge branch 'master' into places-sidebar
Federico Mena Quintero [Sun, 21 Apr 2013 22:20:46 +0000 (18:20 -0400)]
Oops, only show 'Connect to server' if the caller enabled it
Cosimo Cecchi [Sun, 21 Apr 2013 20:56:25 +0000 (16:56 -0400)]
window: don't forget to fetch title border when not on CSD
We still need to respect this border value even when we're not running
under CSD, since we support setting a custom titlebar in all cases.
The border/style magic in gtk_window_draw() really needs to be separated
out into logical pieces soon, but for now let's keep a consistent
behavior with the previous code.
Federico Mena Quintero [Sun, 21 Apr 2013 19:51:49 +0000 (15:51 -0400)]
Merge branch 'places-sidebar'
Cosimo Cecchi [Sun, 21 Apr 2013 18:44:24 +0000 (14:44 -0400)]
window: only account for decoration borders when we're client decorated
Federico Mena Quintero [Sat, 20 Apr 2013 23:19:30 +0000 (19:19 -0400)]
Add a selected_volume argument to ::populate-popup
Nautilus needs this in order to implement a Format command for a volume's popup menu.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Matthias Clasen [Sun, 21 Apr 2013 03:37:10 +0000 (23:37 -0400)]
csd: Drop content_window
Instead of reparenting the content, use input-only windows to
set cursors and capture clicks on the window frame. This avoids
some of the problems that were introduced by content_window, such
as black flashes and non-working opacity.
Federico Mena Quintero [Sat, 20 Apr 2013 23:14:59 +0000 (19:14 -0400)]
Sync from nautilus commit
500770e8de18b07392ffa4435372525d5d03c688
Add a Connect to Server menu item, a show-connect-to-server property, and a show-connect-to-server signal.
Federico Mena Quintero [Sat, 20 Apr 2013 20:21:33 +0000 (16:21 -0400)]
Remove the switch location timer during drag_leave
So that hovering in and out of the sidebar quickly doesn't cause a location change in the caller.
Federico Mena Quintero [Sat, 20 Apr 2013 20:00:00 +0000 (16:00 -0400)]
Merge branch 'places-sidebar'
Cosimo Cecchi [Sat, 20 Apr 2013 19:53:10 +0000 (15:53 -0400)]
Sync from nautilus commit
d2bfffc574c1e6305d862c041b35c9c45ba67674
Coding style fix.
Cosimo Cecchi [Sat, 20 Apr 2013 19:51:07 +0000 (15:51 -0400)]
Sync from nautilus commit
277a6a45bee8186b2493ad1b286234ac52f1aed8
Use gtk_tree_view_set_activate_on_single_click().
William Jon McCann [Sat, 20 Apr 2013 19:41:08 +0000 (15:41 -0400)]
Sync nautilus commit
95400548176688f3d2f5e8888f48410756bd96b8
Switch location on hovering the places sidebar during a DnD operation -
kind of for spring-loaded folders.
Federico Mena Quintero [Sat, 20 Apr 2013 18:56:16 +0000 (14:56 -0400)]
Merge branch 'places-sidebar'
Federico Mena Quintero [Sat, 20 Apr 2013 18:20:07 +0000 (14:20 -0400)]
Remove the drop feedback row a little time after drag_leave
Since ::drag-leave gets emitted before ::drag-drop, we can't just remove the drop feedback row
in drag-leave, as we *need* it during drag-drop. So, we use the same trick as in testdnd.c - we
install a timeout handler in our drag-leave callback, and remove the feedback in the timeout callback.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Sat, 20 Apr 2013 16:30:48 +0000 (12:30 -0400)]
Drop in the right place when the feedback row is active
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Sat, 20 Apr 2013 15:42:04 +0000 (11:42 -0400)]
Actually use the drop_state, instead of encoding things in new_bookmark_index
This lets us keep the new_bookmark_index untouched even when the drop state goes from armed to unarmed.
That will in turn let us drop in the right place...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Victor Ibragimov [Sat, 20 Apr 2013 09:28:18 +0000 (14:28 +0500)]
Tajik translation updated
Victor Ibragimov [Sat, 20 Apr 2013 08:39:19 +0000 (13:39 +0500)]
Tajik translation update
Victor Ibragimov [Sat, 20 Apr 2013 04:46:02 +0000 (09:46 +0500)]
Updated translation for Tajik
Dimitris Spingos [Sat, 20 Apr 2013 02:42:43 +0000 (05:42 +0300)]
Updated Greek translation
Matthias Clasen [Sat, 20 Apr 2013 00:06:52 +0000 (20:06 -0400)]
po: Add a rule to generate files
This should help translators generate an updates pot file.
Just doing make -C po gtk30.pot should work now, no need to
build the entire module.
Matthias Clasen [Sat, 20 Apr 2013 00:05:17 +0000 (20:05 -0400)]
Strip XF86 from keyboard label msgids
The msgids have changed, but all the translations still apply.
Matthias Clasen [Fri, 19 Apr 2013 23:35:49 +0000 (19:35 -0400)]
Update keyname tables
This commit is very similar to
8c8853a1f5d29d447c16ba5d92bdb7bb442ee721
We update the keynames.txt file from gdkkeynames.h, and we update
keynames-translate.txt to include all the keysym names that we want
to have translations for. Also strip the XF86 from the translatable
keysym names, since we are returning those names now from
gdk_keyval_name().
keyname-table.h is regenerated from these updated files.
Matthias Clasen [Fri, 19 Apr 2013 23:29:13 +0000 (19:29 -0400)]
Keep XF86 keysym names working
These names are unfortunately stored in gsettings around
the world, so we can't really stop supporting them.
Matthias Clasen [Fri, 19 Apr 2013 23:28:09 +0000 (19:28 -0400)]
Add some tests for keysyms
Not very extensive, but we do test that XF86 keysym names
keep working.
Matthias Clasen [Fri, 19 Apr 2013 21:28:35 +0000 (17:28 -0400)]
Update gdkkeysyms.h header
Regenerate these files from the X11 keysymdef.h file, using
gdkkeysyms-update.pl. The only change is the addition of
GDK_KEY_AudioMicMute.
Federico Mena Quintero [Fri, 19 Apr 2013 22:26:39 +0000 (17:26 -0500)]
Merge branch 'places-sidebar'
Federico Mena Quintero [Fri, 19 Apr 2013 22:20:12 +0000 (17:20 -0500)]
treeview: Use equal areas in the computation of drag dest row positions
We used to divide the row in thirds vertically, and use the outer thirds for GTK_TREE_VIEW_DROP_BEFORE and AFTER, respectively.
Now we use *fourths*. This is so that we get equal areas for these:
GTK_TREE_VIEW_DROP_BEFORE
GTK_TREE_VIEW_DROP_INTO_OR_BEFORE
GTK_TREE_VIEW_DROP_INTO_OR_AFTER
GTK_TREE_VIEW_DROP_AFTER
This makes hovering tree rows much more positive.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 22:22:39 +0000 (17:22 -0500)]
Adjust the drag destination row when it is above the currently highlighted row
This makes the feedback accurate and without hysteresis. Haven't I written this code ten times before?
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 20:49:54 +0000 (15:49 -0500)]
Dropping on the feedback row is always possible
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Fri, 19 Apr 2013 20:03:17 +0000 (15:03 -0500)]
Add a temporary row for feedback when inserting a bookmark is possible
We'll prettify this gradually.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Victor Ibragimov [Fri, 19 Apr 2013 22:10:36 +0000 (00:10 +0200)]
[l10n] Add Tajik translation
Matthias Clasen [Fri, 19 Apr 2013 21:10:39 +0000 (17:10 -0400)]
Revert "gdk: Update keynames list from gdkkeysyms.h"
This reverts commit
8c8853a1f5d29d447c16ba5d92bdb7bb442ee721.